package Sds

func (str64 *Str64) GetLen() uint64 {
	return uint64(str64.len)
}

func (str64 *Str64) SetValue(bts []byte) ISds {
	if uint64(len(bts)) > MaxType8 {
		sds := NewSds(bts)
		sds.SetValue(bts)
		return sds
	}
	copy(str64.char, bts)
	str64.len = uint64(len(bts))
	str64.free = MaxType64 - str64.len
	return str64
}

func (str64 *Str64) GetValues() []byte {
	return str64.char[0:str64.len]
}

func (str64 *Str64) GetFree() uint64 {
	return uint64(str64.free)
}
